home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / www / library / implemen / htstring.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  1.1 KB  |  50 lines

  1. /*                                                                 String handling for libwww
  2.                                          STRINGS
  3.                                              
  4.    Case-independent string comparison and allocations with copies etc
  5.    
  6.  */
  7. #ifndef HTSTRING_H
  8. #define HTSTRING_H
  9.  
  10. #include "HTUtils.h"
  11.  
  12. extern int WWW_TraceFlag;       /* Global flag for all W3 trace */
  13.  
  14. extern CONST char * HTLibraryVersion;   /* String for help screen etc */
  15.  
  16. /*
  17.  
  18. Case-insensitive string comparison
  19.  
  20.    The usual routines (comp instead of cmp) had some problem.
  21.    
  22.  */
  23. extern int strcasecomp  PARAMS((CONST char *a, CONST char *b));
  24. extern int strncasecomp PARAMS((CONST char *a, CONST char *b, int n));
  25.  
  26. /*
  27.  
  28. Malloced string manipulation
  29.  
  30.  */
  31. #define StrAllocCopy(cp_dest, cp_src) HTSACopy(&(cp_dest), cp_src)
  32. #define StrAllocCat(dest, src)  HTSACat  (&(dest), src)
  33. extern char *HTSACopy(char **cpp_dest, const char *cp_src);
  34. extern char * HTSACat  PARAMS ((char **dest, CONST char *src));
  35.  
  36. /*
  37.  
  38. Next word or quoted string
  39.  
  40.  */
  41. extern char * HTNextField PARAMS ((char** pstr));
  42.  
  43.  
  44. #endif
  45. /*
  46.  
  47.    end
  48.    
  49.     */
  50.